#!/bin/sh

echo "Build to defalut env."
go build -o=./build/assistant

echo "Build to Window amd64"
export GOOS=windows
export GOARCH=amd64
go build -o=./build/assistant-amd64.exe

echo "Build to Window amd32"
export GOOS=windows
export GOARCH=amd32
go build -o=./build/assistant-amd32.exe

echo "Build to Linux arm64."
export GOOS=linux
export GOARCH=arm64
go build -o=./build/assistant-arm64

echo "Build to Linux arm32."
export GOOS=linux
export GOARCH=arm32
go build -o=./build/assistant-amd32